package com.mlnx.device.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mlnx.analysis.pojo.dto.EcgChannel;
import com.mlnx.common.form.PageForm;
import com.mlnx.device.entity.EcgDevice;
import com.mlnx.device.pojo.dto.EcgDeviceDto;
import com.mlnx.device.pojo.form.EcgDeviceFilterForm;
import com.mlnx.device.pojo.form.EcgDeviceForm;
import com.mlnx.device.pojo.form.EcgFilterInfoForm;

import java.util.Collection;
import java.util.List;

/**
 * Created by amanda.shan on 2019/10/25.
 */
public interface EcgDeviceService extends IBaseService<EcgDevice> {
    /**
     * 获取所有在线心电设备编号
     *
     * @return
     */
    Collection<String> getOnlineEcgDeviceNums();

    EcgDeviceDto getEcgDeviceDto(String deviceId);

    List<EcgDeviceDto> getOnlineEcgDevices();

    List<EcgDeviceDto> getAllEcgDevices();

    Page<EcgDeviceDto> list(PageForm pageForm, EcgDeviceFilterForm ecgDeviceFilterForm);

    List<EcgDeviceDto> listOnlines(EcgDeviceFilterForm ecgDeviceFilterForm);

    void modifyEcgFilter(EcgFilterInfoForm ecgFilterInfoForm);

    void modifyEcgChannel(EcgChannel ecgChannel);

    void addEcgDevice(EcgDeviceForm ecgDeviceForm,Integer userId);

    void updateEcgDevice(Integer id, EcgDeviceForm ecgDeviceForm);

}
